//
//  ImageCollectionViewCell.m
//  FNer
//
//  Created by 王展 on 15/10/6.
//  Copyright (c) 2015年 wangzhan. All rights reserved.
//

#import "ImageCollectionViewCell.h"

@implementation ImageCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatImageCell];
    }
    return self;
}

-(void)creatImageCell
{
    self.IconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height)];
    self.IconImageView.backgroundColor = [UIColor colorWithRed:240 / 255.0 green:240 / 255.0 blue:240 / 255.0 alpha:1];
    [self.contentView addSubview:self.IconImageView];
}


-(void)setAHtworld:(DetailHtworld *)aHtworld
{
    _aHtworld = aHtworld;
    [self.IconImageView sd_setImageWithURL:[NSURL URLWithString:self.aHtworld.titleThumbPath]];
}

@end
